home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / castools.zip / FAXERROR.H < prev    next >
Text File  |  1990-01-05  |  11KB  |  147 lines

  1. /* FAXERROR.H  Header file for CAS Toolkit high-level function FAXError.
  2.  
  3.    Header file that defines the constants used in handling errors in the
  4.    CAS Toolkit high-level functions, and includes a table of CAS error codes
  5.    matched with strings describing them.
  6.  
  7.    This file must be included in the source files of any application that uses
  8.    the high-level Toolkit function FAXError.
  9. ==============================================================================*/
  10. /*
  11.     ERROR MESSAGE LIST for high-level Toolkit functions.  This list is indexed
  12.     by the global variable FAXerrno.
  13. */
  14. char *FAXerrlist[] = {
  15.  
  16.   /* First, the names of the CAS low-level functions, by their hex numbers */
  17.   "CASGetInstalledState ",                          /* INSTALLEDSTATE 0x00 */
  18.   "CASSubmitTask ",                                 /* SUBMITTASK     0x01 */
  19.   "CASAbortCurrentEvent ",                          /* ABORTCURRENT   0x02 */
  20.   "",
  21.   "",
  22.   "CASFindFirst ",                                  /* FINDFIRST      0x05 */
  23.   "CASFindNext ",                                   /* FINDNEXT       0x06 */
  24.   "CASOpenFile",                                    /* OPENFILE       0x07 */
  25.   "CASDeleteFile ",                                 /* DELETEFILE     0x08 */
  26.   "CASDeleteAllFiles ",                             /* DELETEALL      0x09 */
  27.   "CASGetEventDate ",                               /* GETEVENTDATE   0x0A */
  28.   "CASSetEventDate ",                               /* SETEVENTDATE   0x0B */
  29.   "CASGetEventTime ",                               /* GETEVENTTIME   0x0C */
  30.   "CASSetEventTime ",                               /* SETEVENTTIME   0x0D */
  31.   "CASGetExternalData ",                            /* GETEDB         0x0E */
  32.   "CASARState ",                                    /* AUTORCVSTATE   0x0F */
  33.   "CASGetEventStatus ",                             /* GETEVENTSTATUS 0x10 */
  34.   "CASGetQueueStatus ",                             /* GETQUEUESTATUS 0x11 */
  35.   "CASGetHardwareStatus ",                          /* GETHWSTATUS    0x12 */
  36.   "CASRunDiagnostics ",                             /* RUNDIAGNOSTICS 0x13 */
  37.   "CASMoveReceivedFile ",                           /* MOVEFILE       0x14 */
  38.   "CASSubmitSingleFile ",                           /* SUBMITSINGLE   0x15 */
  39.   "CASUninstall ",                                  /* UNINSTALL      0x16 */
  40.  
  41.   /* Toolkit error checking errors */
  42.   "Error using lseek",                                                  /* 23 LSEEKERROR          */
  43.   "Insufficient memory",                                                /* 24 OUTOFMEMORY         */
  44.   "Error opening file",                                                 /* 25 CANTOPENFILE        */
  45.   "Error writing to file",                                              /* 26 CANTWRITEFILE       */
  46.   "Error reading file",                                                 /* 27 CANTREADFILE        */
  47.   "Error closing file",                                                 /* 28 CANTCLOSEFILE       */
  48.   "FileCount field differs from actual # of files",                     /* 29 BADFILECOUNT        */
  49.   "Structure freed pointed to another structure",                       /* 30 ORPHANWARNING       */
  50.   "No Control file for the given event",                                /* 31 EVENTNOTFOUND       */
  51.   "Bad ECS: FileCount is less than 0 or greater than 32766",            /* 32 FILECOUNTOUTOFRANGE */
  52.   "The file number requested was too high",                             /* 33 NOTTHATMANYFILES    */
  53.   "The cancelled event was currently executing",                        /* 34 EVENTWASCURRENT     */
  54.   "Invalid Task EventStatus",                                           /* 35 BADSTATUS           */
  55.   "Caller's file list overwrites existing FTR pointers",                /* 36 LOSTFTRS            */
  56.   "End of file, but there should have been more FTR's",                 /* 37 UNEXPECTEDEOF       */
  57.   "There are more FTR's than FileCount",                                /* 38 MOREFTRSTHANFC      */
  58.   "An ASCIIZ string is longer than allowed",                            /* 39 STRINGTOOLONG       */
  59.   "A pointer was uninitialized (NULL)",                                 /* 40 INVALIDPTR          */
  60.   "Bad Event Control Structure: EventType",                             /* 41 BADEVENTTYPE        */
  61.   "Bad Event Control Structure: TransferType",                          /* 42 BADTRANSFERTYPE     */
  62.   "Warning: A Resident Manager field was not null",                     /* 43 FIELDZEROED         */
  63.   "Bad ECS: EventTime",                                                 /* 44 BADEVENTTIME        */
  64.   "Bad ECS: EventDate",                                                 /* 45 BADEVENTDATE        */
  65.   "Bad ECS: Phonenumber",                                               /* 46 BADPHONENUMBER      */
  66.   "Bad ECS: An ASCII string contained a non-ASCII character",           /* 47 NONASCIISTRING      */
  67.   "Bad ECS: SendCover",                                                 /* 48 BADSENDCOVER        */
  68.   "Warning: A File Transfer Record field was not null",                 /* 49 FTRFIELDZEROED      */
  69.   "Bad FTR: FileType",                                                  /* 50 FTRBADFILETYPE      */
  70.   "Bad FTR: TextSize",                                                  /* 51 FTRBADTEXTSIZE      */
  71.   "Bad FTR: PageLength",                                                /* 52 FTRBADPAGELENGTH    */
  72.   "Bad Ftr: An ASCII string contained a non-ASCII character",           /* 53 FTRNONASCIISTRING   */
  73.   "A Toolkit set a reserved field to all zeroes",                       /* 54 RESERVEDFIELDZEROED */
  74.   "A reserved field in a File Transfer Record was not null",            /* 55 FTRRESERVEDZEROED   */
  75.   "Warning, FTR: The additional page increments value is out-of-range", /* 56 FTRBADPAGEINCREMENTS*/
  76.   "Bad ECS: Logo file or path not found",                               /* 57 LOGOFILENOTFOUND    */
  77.   "Bad FTR: File to send or path to file not found",                    /* 58 FILETOSENDNOTFOUND  */
  78.   "Warning: The defaults Event structure contains some invalid data",   /* 59 INVALIDDEFAULTS     */
  79.   "Warning: The parameter Event structure contains some invalid data",  /* 60 INVALIDECS          */
  80.   "There was no cover text for the event",                              /* 61 NOCOVERTEXT         */
  81.   "Information not available because the event is currently executing", /* 62 EVENTISCURRENT      */
  82.   "Can't retrieve the cover page text of a received fax",               /* 63 RECEIVEDFAXNOCOVER  */
  83.   "Invalid FAXerrno"                                                    /* 64 LASTMESSAGE         */
  84.   };
  85.  
  86. /*
  87.     CAS ERROR MESSAGE TABLE:  This table maps CAS error codes with CAS error
  88.     classes and appropriate messages.
  89. */
  90. ErrorTable CASerrors[] = {
  91.     { 0x0000, "" , FAXWARNING},
  92.     { 0x0002, "(0002) Bad scanline count" , FAXWARNING},
  93.     { 0x0003, "(0003) Page sent with errors, could not resend" , FAXWARNING},
  94.     { 0x0004, "(0004) Received data lost" , FAXWARNING},
  95.     { 0x0005, "(0005) Invalid or missing logo file" , FAXWARNING},
  96.     { 0x0006, "(0006) File name does not match NSF header" , FAXWARNING},
  97.     { 0x0007, "(0007) File size does not match NSF header" , FAXWARNING},
  98.     { 0x0101, "(0101) Invalid function number" , DOSWARNING},
  99.     { 0x0105, "(0105) Access denied" , DOSWARNING},
  100.     { 0x0106, "(0106) Invalid handle" , DOSWARNING},
  101.     { 0x0200, "(0200) Multiplex handler failed" , FATALERROR},
  102.     { 0x0201, "(0201) Unknown command (invalid function number)" , FATALERROR},
  103.     { 0x0202, "(0202) Event not found (invlaid event handle)" , FATALERROR},
  104.     { 0x0203, "(0203) Attempted to Find Next before Find First" , FATALERROR},
  105.     { 0x0204, "(0204) No more events" , FATALERROR},
  106.     { 0x0207, "(0207) Invalid Queue type (bad Queue number)" , FATALERROR},
  107.     { 0x0208, "(0208) Bad Control file" , FATALERROR},
  108.     { 0x0209, "(0209) Communication board is busy" , FATALERROR},
  109.     { 0x020A, "(020A) Invalid command parameter" , FATALERROR},
  110.     { 0x020B, "(020B) Can not uninstall Resident Manager" , FATALERROR},
  111.     { 0x020C, "(020C) File already exists" , FATALERROR},
  112.     { 0x0280, "(0280) Invalid task type (not a Send or Poll event" , FATALERROR},
  113.     { 0x0281, "(0281) Bad phone number" , FATALERROR},
  114.     { 0x0282, "(0282) Bad PCX file header" , FATALERROR},
  115.     { 0x0283, "(0283) Unexpected End of File" , FATALERROR},
  116.     { 0x0284, "(0284) Unexpected disconnect" , FATALERROR},
  117.     { 0x0285, "(0285) Exceeded maximum dialing retries" , FATALERROR},
  118.     { 0x0286, "(0286) No files were specified for send event" , FATALERROR},
  119.     { 0x0287, "(0287) Communication board timeout" , FATALERROR},
  120.     { 0x0288, "(0288) Received more than 1023 pages of data" , FATALERROR},
  121.     { 0x0289, "(0289) Manual connect posted too long ago" , FATALERROR},
  122.     { 0x028A, "(028A) Hardware command set error" , FATALERROR},
  123.     { 0x028B, "(028B) Bad nonstandard NSF header file" , FATALERROR},
  124.     { 0x0302, "(0302) File not found" , FATALDOSERROR},
  125.     { 0x0303, "(0303) Path not found" , FATALDOSERROR},
  126.     { 0x0401, "(0401) Remote unit not Group 3 compatible" ,               FAXERROR},
  127.     { 0x0402, "(0402) Remote unit didn't send its capabilities" ,         FAXERROR},
  128.     { 0x0403, "(0403) Remote unit requested disconnect" ,                 FAXERROR},
  129.     { 0x0404, "(0404) Remote unit isn't a Connection Coprocessor" ,       FAXERROR},
  130.     { 0x0405, "(0405) Exceeded retrain or fax resend limit" ,             FAXERROR},
  131.     { 0x0406, "(0406) Line noise or the local and remote unit don't agree on a bit rate",FAXERROR},
  132.     { 0x0407, "(0407) Remote unit disconnected after receiving data" ,    FAXERROR},
  133.     { 0x0408, "(0408) No response from remote unit after sending data" ,  FAXERROR},
  134.     { 0x040A, "(040A) Capabilities of remote unit aren't compatible" ,    FAXERROR},
  135.     { 0x040C, "(040C) Invalid response from remote unit after sending data" ,FAXERROR},
  136.     { 0x0410, "(0410) Phone line dead or remote unit disconnected",       FAXERROR},
  137.     { 0x0414, "(0414) Invalid command from remote after receiving data ", FAXERROR},
  138.     { 0x041E, "(041E) Tried to receive from incompatible hardware",       FAXERROR},
  139.     { 0x045B, "(045B) Unexpected end of file while receiving",            FAXERROR},
  140.     { 0x045C, "(045C) Received data overflowed input buffer",             FAXERROR},
  141.     { 0x045D, "(045D) Remote hardware unexpectedly stopped sending data", FAXERROR},
  142.     { 0x045E, "(045E) Remote hardware didn't send any data",              FAXERROR},
  143.     { 0x0462, "(0462) Remote hardware took too long to send fax scan line",FAXERROR},
  144.     { 0x0463, "(0463) Can't get through to remote unit",                  FAXERROR},
  145.     { 0x0464, "(0464) User canceled event",                               FAXERROR}
  146. };
  147.